class User < ApplicationRecord
  has_secure_password
  validates :name, format: { with: /(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]/ }
  validates :email, presence: true
  has_many :articles
end
